home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 July: Mac OS SDK / Dev.CD Jul 96 SDK / Dev.CD Jul 96 SDK2.toast / Development Kits (Disc 2) / QuickDraw GX / Programming Stuff / Sample Code / Printing Samples / Printer Drivers… / ImageWriterLQ (alt. rdip) / ImageWriterLQ.make < prev    next >
Encoding:
Text File  |  1995-04-10  |  7.4 KB  |  218 lines  |  [TEXT/MPS ]

  1. #==============================================================================================
  2. #
  3. #    Make FILE:        ImageWriterLQ.make
  4. #
  5. #    VERSION:        1.0
  6. #
  7. #    COPYRIGHT:        (c) 1992-1994 Apple Computer Inc.
  8. #                        All rights reserved.
  9. #
  10. #    PURPOSE:        This file contains the build commands for the
  11. #                    ImageWriter LQ driver.
  12. #
  13. #    4/26/93 - dmh - Made makefile totally self-supporting for b1 seed.
  14. #    9/13/93 - dmh - Updated for the b2 seed.
  15. #  12/18/93 - dmh - Updated for the b3 seed.
  16. #    8/28/94 - dmh - Finalized for SDK.
  17. #
  18. #==============================================================================================
  19.  
  20. #======= Point these variables to your library directory =======
  21.  
  22. GXLibrariesSources        = 'Backwash:QuickDraw™ GX Libraries:Graphics Libraries:'
  23.  
  24. #========== Directories Containing Source and Object Files ==========
  25.  
  26. Objects                    =    :Objects:
  27. Sources                    =    
  28. Targets                    =
  29.  
  30. #========== Compiler Options ==========
  31.  
  32. AsmOptions                =    -case obj
  33. COptions                =    -b2 -d applec -i {CIncludes}
  34. DriverLinkOptions        =    -ra =resSysHeap,resPurgeable
  35.  
  36. #========== Printing Manager Dependent Header Files ==========
  37.  
  38. PrintManagerHeaderFiles    =    {CIncludes}PrintingManager.h        ∂
  39.                             {CIncludes}PrintingMessages.h        ∂
  40.                             {CIncludes}PrintingExtensions.h    ∂
  41.                             {CIncludes}Collections.h            ∂
  42.                             {CIncludes}Messages.h                ∂
  43.                             {CIncludes}PrintingResTypes.h        ∂
  44.                             {CIncludes}PrintingErrors.h
  45.  
  46. GraphicsHeaderFiles        =    {CIncludes}"graphics routines.h"    ∂
  47.                             {CIncludes}"graphics libraries.h"    ∂
  48.                             {CIncludes}"math routines.h"            
  49.  
  50.  
  51. #========== Files to Link into OldAPI Segment ==========
  52.  
  53. OldAPISegObjs    =    "{Objects}OldAPIMsgJumpTable.a.o"            ∂
  54.                     "{Objects}OldAPIMessageIntf.c.o"            ∂
  55.                     "{Libraries}"Runtime.o
  56.  
  57.  
  58. #========== Files to Link into Universal Message Segment ==========
  59.  
  60. UnivSegObjs        =    "{Objects}UniversalMsgJumpTable.a.o"        ∂
  61.                     "{Objects}UniversalMessageIntf.c.o"            ∂
  62.                     "{Objects}DialogRoutines.c.o"                ∂
  63.                     "{Objects}text library.c.o"                    ∂
  64.                     "{Objects}picture library.c.o"                ∂
  65.                     "{Objects}font library.c.o"                    ∂
  66.                     "{Objects}color library.c.o"                ∂
  67.                     "{Objects}graphics library.c.o"                ∂
  68.                     "{Libraries}"Runtime.o                        ∂
  69.                     "{Libraries}"Interface.o                    
  70.  
  71.  
  72. #========== Files to Link into the Chooser PACK ==========
  73.  
  74. ChooserPackObjs =    "{Objects}ChooserSupport.a.o"                ∂
  75.                     "{Objects}ChooserSupport.c.o"                ∂
  76.                     "{Libraries}Interface.o"
  77.  
  78.  
  79. #========== Files to Link into the Chooser LDEF ==========
  80.  
  81. ChooserLDEFObjs =    "{Objects}ChooserSupport.c.o"                
  82.  
  83.  
  84. #========== Link and Rez Build Statements ==========
  85.  
  86. "ImageWriterLQ"    ƒ    {OldAPISegObjs}                                                     ∂
  87.                     {UnivSegObjs}                                ∂
  88.                     {ChooserPackObjs}                            ∂
  89.                     {ChooserLDEFObjs}                            ∂
  90.                     "{Sources}ImageWriterLQ.make"                ∂
  91.                     "{Sources}Resources.r"                        ∂
  92.                     "{Sources}OldAPIResources.r"                ∂
  93.                     "{Sources}UniversalMessageResources.r"
  94.         Echo "Linking ImageWriterLQ"
  95.         Link {OldAPISegObjs}                                    ∂
  96.               {DriverLinkOptions}                                ∂
  97.               -rt pdvr=1                                        ∂
  98.               -sg "ImageWriterLQ"                                ∂
  99.               -m SD_OldAPIMsgJumpTable                            ∂
  100.               -o "{Objects}IWLQ_OldAPISeg"
  101.         Link {UnivSegObjs}                                        ∂
  102.               {DriverLinkOptions}                                ∂
  103.               -rt pdvr=0                                        ∂
  104.               -sg "ImageWriterLQ"                                ∂
  105.               -m SD_UniversalMsgJumpTable                        ∂
  106.               -o "{Objects}IWLQ_UnivSeg"
  107.         Link    {ChooserPackObjs}                                ∂
  108.                 -rt PACK=-4096                                    ∂
  109.                 -sg PrintingPACK                                ∂
  110.                 -m EntryPoint                                    ∂
  111.                 -o "{Objects}IWLQ_PACK"
  112.         Link    {ChooserLDEFObjs}                                ∂
  113.                 -w                                                ∂
  114.                 -rt LDEF=-4096                                    ∂
  115.                 -sg LDEF                                        ∂
  116.                 -m LDEF                                            ∂
  117.                 -o "{Objects}IWLQ_LDEF"
  118.         Echo "Rezzing ImageWriterLQ Driver"
  119.         Rez    -rd -i {RIncludes} -c 'scLQ' -t 'pdvr' -ov -s {Objects} ∂
  120.                 -o "{Targets}ImageWriterLQ" "{Sources}Resources.r" "{Sources}OldAPIResources.r" ∂
  121.                 "{Sources}UniversalMessageResources.r" "{Sources}ChooserSupport.r" -append
  122.  
  123.  
  124. #========== Assemble Build Statements - OldAPIMsgJumpTable.a ==========
  125.  
  126. "{Objects}OldAPIMsgJumpTable.a.o"        ƒ     "{Sources}OldAPIMsgJumpTable.a"        ∂
  127.                                             "{Sources}ImageWriterLQ.make"
  128.     Echo "Assembling OldAPIMsgJumpTable.a"
  129.     Asm {AsmOptions} {MakeJumpTable} {Sources}OldAPIMsgJumpTable.a -o {Objects}OldAPIMsgJumpTable.a.o
  130.     
  131.  
  132. #========== Assemble Build Statements - UniversalMsgJumpTable.a ==========
  133.  
  134. "{Objects}UniversalMsgJumpTable.a.o"    ƒ     "{Sources}UniversalMsgJumpTable.a"    ∂
  135.                                             "{Sources}ImageWriterLQ.make"
  136.     Echo "Assembling UniversalMsgJumpTable.a"
  137.     Asm {AsmOptions} {MakeJumpTable} {Sources}UniversalMsgJumpTable.a -o {Objects}UniversalMsgJumpTable.a.o
  138.     
  139.  
  140. #========== Assemble Build Statements - ChooserSupport.a ==========
  141.  
  142. "{Objects}ChooserSupport.a.o"    ƒ     "{Sources}ChooserSupport.a"        ∂
  143.                                     "{Sources}ImageWriterLQ.make"
  144.     Echo "Assembling ChooserSupport.a"
  145.     Asm {AsmOptions} {MakeJumpTable} {Sources}ChooserSupport.a -o {Objects}ChooserSupport.a.o
  146.  
  147.  
  148. #========== Compile Build Statements - OldAPIMessageIntf.c ==========
  149.  
  150. "{Objects}OldAPIMessageIntf.c.o"    ƒ    "{Sources}OldAPIMessageIntf.c"    ∂
  151.                                         {PrintManagerHeaderFiles}        ∂
  152.                                         {GraphicsHeaderFiles}            ∂
  153.                                         "{Sources}ImageWriterLQ.make"    ∂
  154.                                         "{Sources}Resources.h"             ∂
  155.                                         "{Sources}OldAPIMessageIntf.h"
  156.     Echo "Compiling OldAPIMessageIntf.c"
  157.     C "{Sources}OldAPIMessageIntf.c" -o "{Objects}OldAPIMessageIntf.c.o"  {COptions}
  158.  
  159.  
  160. #========== Compile Build Statements - UniversalMessageIntf.c ==========
  161.  
  162. "{Objects}text library.c.o"            ƒ {GXLibrariesSources}"text library.c"
  163.     Echo "compiling text library.c"
  164.     C {COptions} -o {Objects} {GXLibrariesSources}"text library.c"
  165.  
  166. "{Objects}picture library.c.o"        ƒ {GXLibrariesSources}"picture library.c"
  167.     Echo "compiling picture library.c"
  168.     C {COptions} -o {Objects} {GXLibrariesSources}"picture library.c"
  169.  
  170. "{Objects}font library.c.o"            ƒ {GXLibrariesSources}"font library.c"
  171.     Echo "compiling font library.c"
  172.     C {COptions} -o {Objects} {GXLibrariesSources}"font library.c"
  173.  
  174. "{Objects}color library.c.o"        ƒ {GXLibrariesSources}"color library.c"
  175.     Echo "compiling color library.c"
  176.     C {COptions} -o {Objects} {GXLibrariesSources}"color library.c"
  177.  
  178. "{Objects}graphics library.c.o"        ƒ {GXLibrariesSources}"graphics library.c"
  179.     Echo "compiling graphics library.c"
  180.     C {COptions} -o {Objects} {GXLibrariesSources}"graphics library.c"
  181.  
  182.  
  183. "{Objects}UniversalMessageIntf.c.o"    ƒ    "{Sources}UniversalMessageIntf.c"        ∂
  184.                                         {PrintManagerHeaderFiles}                ∂
  185.                                         {GraphicsHeaderFiles}                    ∂
  186.                                         "{Sources}ImageWriterLQ.make"            ∂
  187.                                         "{Sources}Resources.h"                     ∂
  188.                                         "{Sources}UniversalMessageIntf.h"
  189.     Echo "Compiling UniversalMessageIntf.c"
  190.     C "{Sources}UniversalMessageIntf.c" -o "{Objects}UniversalMessageIntf.c.o"  {COptions}
  191.  
  192.  
  193. #========== Compile Build Statements - ChooserSupport.c ==========
  194.  
  195. "{Objects}ChooserSupport.c.o"    ƒ    "{Sources}ChooserSupport.c"            ∂
  196.                                     {PrintManagerHeaderFiles}            ∂
  197.                                     {GraphicsHeaderFiles}                ∂
  198.                                     "{Sources}ImageWriterLQ.make"        ∂
  199.                                     "{Sources}ChooserSupport.a"         ∂
  200.                                     "{Sources}ChooserSupport.r"
  201.     Echo "Compiling ChooserSupport.c"
  202.     C "{Sources}ChooserSupport.c" -o "{Objects}ChooserSupport.c.o"  {COptions}
  203.  
  204.  
  205. #========== Compile Build Statements - DialogRoutines.c ==========
  206.  
  207. "{Objects}DialogRoutines.c.o"    ƒ    "{Sources}DialogRoutines.c"            ∂
  208.                                     "{Sources}DialogRoutines.h"            ∂
  209.                                     {PrintManagerHeaderFiles}            ∂
  210.                                     {GraphicsHeaderFiles}                ∂
  211.                                     "{Sources}ImageWriterLQ.make"        ∂
  212.                                     "{Sources}Resources.h"                 ∂
  213.                                     "{Sources}UniversalMessageIntf.h"
  214.     Echo "Compiling DialogRoutines.c"
  215.     C "{Sources}DialogRoutines.c" -o "{Objects}DialogRoutines.c.o"  {COptions}
  216.  
  217.  
  218.